﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities.Auditing;

namespace FwProject.ShoppingMall.Shop
{
    /// <summary>
    /// 标签表
    /// </summary>
    [Table("ShopTag")]
    public class ShopTag: FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 标签名称
        /// </summary>
        [Required]
        [StringLength(200)]
        public string TagName { get; set; }
        /// <summary>
        /// 标签类型
        /// </summary>
        [Required]
        public TagTypeEnum TagType { get; set; } = TagTypeEnum.商品;
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsActive { get; set; } = true;
    }

    public enum TagTypeEnum
    {
        商品=0,
        品牌=1
    }
}
